﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="WebControls.aspx.cs" Inherits="WebControls" %>

<%@ Register src="UserControl/TimeControl.ascx" tagname="TimeControl" tagprefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Web Control</title>
    
    
    <link href="StyleSheet.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <h2>Web Control</h2>
    
    <uc1:TimeControl ID="TimeControl1" runat="server" />
    
    <div>
   <h3> Label </h3><br />
    <asp:Label ID="lblLabel" runat="server" Text="This is Label" CssClass="MyLabel"></asp:Label><br />
      <b>Important Events</b> <br />
    Text <br />
    cssClass<br />
    
    <hr />
   <h3> Textbox </h3><br />
     <asp:TextBox ID="TextBox1" runat="server" Text="Enter your name" CssClass="MyTextBox" TextMode="SingleLine"></asp:TextBox><br /><br />
    <asp:TextBox ID="TextBox2" runat="server" Text="Enter your name" CssClass="MyTextBox" TextMode="MultiLine"></asp:TextBox><br /><br />
    <asp:TextBox ID="TextBox3" runat="server" Text="Enter your name" CssClass="MyTextBox" TextMode="Password" ></asp:TextBox><br /><br />
    <b>Important Properties</b> <br />
    Text <br />
    cssClass<br />
    Textmode =  SingleLine / MultiLine / Password<br />
    
    <hr />
   <h3> Button</h3><br />
     <asp:Button ID="Button1" runat="server" Text="Click Me " CssClass="MyButton" 
        onclick="Button1_Click" /><br />
    <b> Important Properties</b> <br />
    Text <br />
    cssClass<br />
    <br /><br />
    <b> Important Events</b><br />
    onClick<br />
    
    <hr />
    <h3>LinkButton</h3><br />
    <asp:LinkButton ID="LinkButton1" runat="server" Text="Yahoo " 
        onclick="LinkButton1_Click" ></asp:LinkButton><br />
        
    <b>  Important Properties</b> <br />
    Text <br />
    cssClass<br />
    <br /><br />
     <b> Important Events</b><br />
    onClick<br />
    <hr />
   <h3>ImageButton<br /></h3> 
   
   <asp:ImageButton ID="ImageButton1" runat="server" AlternateText="Settings" 
        ImageUrl="~/Images/Wrench.jpg" onclick="ImageButton1_Click" />
   <hr />
   
    <h3>HyperLink<br /></h3>
    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="http://www.google.com">http://www.google.com</asp:HyperLink>
   <b>  Important Properties</b>
   Text<br />
   css<br />
   Navigateurl<br />
   
   <hr />
   
   
    <h3>DropdownList</h3><br />
     <asp:DropDownList ID="DropDownList1" runat="server">
        <asp:ListItem>India</asp:ListItem>
        <asp:ListItem>Pakistan</asp:ListItem>
        <asp:ListItem>Japan</asp:ListItem>
        <asp:ListItem>shri-lanka</asp:ListItem>
    </asp:DropDownList><br />
   <b>  Important Properties</b><br />
    Text</Br>
    Items</Br>
   <b> Important Events</b>
    Autopostback</br>
    <hr />
    
    <h3>Listbox<br /></h3>
         <asp:ListBox ID="ListBox1" runat="server">
        <asp:ListItem>America</asp:ListItem>
        <asp:ListItem>Japan</asp:ListItem>
        <asp:ListItem>England</asp:ListItem>
        <asp:ListItem>india</asp:ListItem>
    </asp:ListBox>
    </br>
    <b>  Important Properties</b> <br />
    Text</br>
    Item</br>
    <hr />
    
    <h3>Checkbox</h3></br>
        <asp:CheckBox ID="CheckBox1" runat="server" />
   <b>  Important Properties</b> <br />
     Text<br />
    
     <br />
     AutoPostback<br />  
    <hr />
    
   <h3> CheckboxList</h3><br />
     <asp:CheckBoxList ID="CheckBoxList1" runat="server" AutoPostBack="True">
            <asp:ListItem>Mumbai</asp:ListItem>
            <asp:ListItem>Pune</asp:ListItem>
            <asp:ListItem>Nashik</asp:ListItem>
            <asp:ListItem>Ludhiyana</asp:ListItem>
        </asp:CheckBoxList>
         <b>  Important Properties</b><br />
         Items<br />
         AutoPostback<br />
         Text<br />
    <hr />
    
    <h3> RadioButton</h3><br />
    
     <asp:RadioButton ID="RadioButton1" runat="server" AutoPostBack="True" 
        Text="Male" />
     <asp:RadioButton ID="RadioButton2" runat="server" AutoPostBack="True" 
        Text="Female" /><br />
   <b>  Important Properties</b> <br />
     AutoPostback<br />
     Text<br />
    <hr />
    
    <h3> RadioButtonList</h3><br />
     <asp:RadioButtonList ID="RadioButtonList1" runat="server" AutoPostBack="True">
             <asp:ListItem>China</asp:ListItem>
             <asp:ListItem>Pakistan</asp:ListItem>
             <asp:ListItem>England</asp:ListItem>
             <asp:ListItem>India</asp:ListItem>
         </asp:RadioButtonList><br />
        <b>  Important Properties</b><br />
        Text
    <hr />
    
    Image<br />
    <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/Wrench.jpg" />
    <b>  Important Properties</b><br />
    Image Url<br />
    <hr />
    
    BulletedList<br />
    <asp:BulletedList ID="BulletedList1" runat="server">
        <asp:ListItem>Pune</asp:ListItem>
        <asp:ListItem>Mumbai</asp:ListItem>
        <asp:ListItem>Nashik</asp:ListItem>
        <asp:ListItem>Ahmednagar</asp:ListItem>
    </asp:BulletedList>
        <b>  Important Properties</b><br />
       Items
    <hr />
    
    <h3>HiddenField</h3> <asp:HiddenField ID="hidx" runat="server"  />
  
  
      <br />
      <asp:Button ID="Button2" runat="server" onclick="Button2_Click" Text="Button" />
  
   <b>  Important Properties</b><br />
   value
   
   Literal<br />
   <asp:Literal ID="Literal1" runat="server" Text="Aditi"></asp:Literal>
    <b>  Important Properties</b><br />
    Text<br />
    Is used to define text without any tag
   <hr />
    
    Panel
    <asp:Panel ID="Panel1" runat="server" Visible="False">
    </asp:Panel>
    
    </div>
     <a href="default.aspx">Back</a>
    </form>
</body>
</html>
